import {createBrowserRouter} from "react-router-dom";

// 导入路由组件
import Layout from "@/Views/Layout"
import Month from "@/Views/Month"
import Year from "@/Views/Year"
import New from "@/Views/New"

// 创建路由表
const router = createBrowserRouter([
    {
        path:'/',
        element: <Layout/>,
        children:[
            {
                index:true,
                element:<Month/>
            },
            {
                path:'/month',
                element:<Month/>
            },
            {
                path:'/year',
                element:<Year/>
            }
        ]
    },
    {
        path:'/new',
        element: <New/>
    },
])

export default router;
